import { defineConfig } from "vite";
import uni from "@dcloudio/vite-plugin-uni";

// https://vitejs.dev/config/
export default defineConfig({
	css: {
		preprocessorOptions: {
			scss: {
				api: 'modern-compiler',
				silenceDeprecations: ['legacy-js-api']
			}
		},
	},
	plugins: [uni()],
	build: {
		rollupOptions: {
			external: ['@qd-wakeLock'] // 排除uts插件
		}
	}
});